import {BasicColumn, FormSchema} from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '会员姓名',
    dataIndex: 'userName',
    width: 100,
  },
  {
    title: '手机号',
    dataIndex: 'userPhone',
    width: 100,
  },
  {
    title: '卡种名称',
    dataIndex: 'goodsName',
    width: 100,
  },
  {
    title: '销售姓名',
    dataIndex: 'employeeName',
    width: 100,
  },
  {
    title: '开卡地区',
    dataIndex: 'airportName',
    width: 100,
  },
  {
    title: '支付金额',
    dataIndex: 'amount',
    width: 100,
  },
  {
    title: '支付类型',
    dataIndex: 'payType',
    width: 100,
  },
  {
    title: '收款凭证图片',
    dataIndex: 'voucherImg',
    width: 100,
  },
  {
    title: '开卡日期',
    dataIndex: 'startDate',
    width: 100,
  },
  {
    title: '到期日期',
    dataIndex: 'endDate',
    width: 100,
  },
  {
    title: '实体卡',
    dataIndex: 'isGive',
    width: 100,
  },
  {
    title: '状态',
    dataIndex: 'isCheck',
    width: 100,
  },
  {
    title: '来源',
    dataIndex: 'sourceType',
    width: 100,
  },
  {
    title: '添加人',
    dataIndex: 'optUserName',
    width: 100,
  },
  {
    title: '创建日期',
    dataIndex: 'checkDate',
    width: 100,
  },
  {
    title: '备注',
    dataIndex: 'checkRemark',
    width: 100,
  }
];

export const searchFormSchema: FormSchema[] = [];


export const formSchema: FormSchema[] = [
  {
    label: '会员姓名',
    field: 'userName',
    component: 'Input',
    required: true,
  },
  {
    label: '会员电话',
    field: 'userPhone',
    component: 'Input',
    required: true,
  },
  {
    label: '卡种',
    field: 'goodsId',
    component: 'Input',
    required: true,
  },
  {
    label: '金额',
    field: 'amount',
    component: 'Input',
    required: true,
  },
  {
    label: '支付类型',
    field: 'payType',
    component: 'Input',
    required: true,
  },
  {
    label: '线下支付',
    field: 'paywayId',
    component: 'Input',
    required: true,
  },
  {
    label: '所属销售',
    field: 'employeeId',
    component: 'Input',
    required: true,
  },
  {
    label: '实体卡',
    field: 'isGive',
    component: 'Input',
    required: true,
  },
  {
    label: '开始时间',
    field: 'amount',
    component: 'Input',
    required: true,
  },
  {
    label: '结束时间',
    field: 'voucherImg',
    component: 'Input',
    required: true,
  },
  {
    label: '备注',
    field: 'remark',
    component: 'Input',
    required: true,
  },
  {
    label: '上传收款凭证',
    field: 'voucherImg',
    component: 'Input',
    required: true,
  }
];
